// page/order/details.js
var utils = require('../../utils/util.js');
Page({
	data: {
		info: [],
		goods: [],
	},

	/**
	 * 生命周期函数--监听页面加载
	 */
	onLoad: function (options) {
		var that = this
		var order_sn = options.sn
		var uid = wx.getStorageSync('uid');
		utils.GET({
			url: 'Order/details',
			params: {
				order_sn: order_sn,
				uid: 1
			},
			success: function (res) {
				console.log(res.data)
				that.setData({
					info: res.data.i,
					goods: res.data.g,
				})
			},
		})
	}
})